package com.szd.demo.controller;

import com.szd.demo.services.GoodsServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class GoodsController {
    @Autowired
    GoodsServices service = null;
    @RequestMapping("findall")
    public String find(Model model){
        model.addAttribute("goodslist",service.find());
        return "goods/findall";
    }
}
